<?php
namespace app\mini\controller\v1\client;
use app\common\logic\MemberApplyLogic;
use app\mini\controller\Common;
use think\Request;

class MemberApply extends Common
{
    public $MemberApplyLogic;

    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $this->MemberApplyLogic = new MemberApplyLogic();
    }

    /**
     * 店铺成员申请
     * @return \think\response\Json
     */
    public function add()
    {
        $res = $this->exception(function () {
            return $this->MemberApplyLogic->add(request()->param());
        });
        return $this->response($res);
    }
}